//
//  POPGestureRecognizeConfiger.swift
//  ScreenPoP
//
//  Created by 万孟超 on 2023/3/17.
//  Copyright © 2023 wanmengchao. All rights reserved.
//

import UIKit

@objcMembers
public class POPGestureRecognizeConfiger: NSObject {
    
    /// 导航控制器
    /// 默认为当前window的导航控制器
    public var navigationController: UINavigationController? = UIApplication.shared.keyWindow?.rootViewController as? UINavigationController
    
    /// 拖动时，背景颜色
    /// 默认为0x999999
    public var backGroundColor: UIColor = "999999".color()
    
    /// 背景颜色alpha
    /// 默认为0.3
    public var backGroundAlpha: Float = 0.3
    
    /// 拖动时展示的图片
    /// 必填，否则无图片
    public var returnImage: UIImage! = UIImage(named: "")
    
    /// 用于修改拖动时展示的图片的颜色
    /// 默认为不变色即nil
    public var imageColor: UIColor?
    
    /// 用于修改拖动时展示返回首页的图片的颜色
    /// 默认为不变色即nil
    public var homeImageColor: UIColor?
    
    /// 是否跟随手势位置移动
    /// 默认为YES
    public var isFollowGesturePosition: Bool = true
    
    /// 是否可以返回首页
    /// 默认为YES
    public var isCanPopToRootViewController: Bool = true
    
    /// 返回首页拖动时展示的图片
    /// isCanPopToRootViewController为YES时，必填
    public var returnHomeImage: UIImage? = nil
    
    /// 返回首页用时
    /// 默认为1秒
    public var returnHomeTime: Float = 1.0
    
    /// 是否执行返回动画
    /// 默认为：YES
    public var isShowPopAnimated: Bool = true
    
}
